﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace ServiceContrack
{
    //[ServiceContract(Namespace = @"http://mircosoft.servicemodel.samples", SessionMode = SessionMode.Allowed, CallbackContract = typeof(ICalculatorDuplexCallback))]
    [ServiceContract(SessionMode = SessionMode.Allowed, CallbackContract = typeof(ICalculatorDuplexCallback))]
    public interface ICalculatorDuplex
    {
        [OperationContract(IsOneWay = true)]
        void AddTo(double n);

        [OperationContract(IsOneWay = false)]
        double Multy(double a, double b);
    }

}
